<template>
  <div class="container">
    <div class="inner-container">
      <div class="item" v-if="props.mainEntity.value">
        <div class="name">
          公司主体
        </div>
        <div class="value">
          {{props.mainEntity.value}}
        </div>
      </div>
      <div class="item" v-if="props.taxNumber.value">
        <div class="name">
          税号
        </div>
        <div class="value">
          {{props.taxNumber.value}}
        </div>
      </div>
      <div class="item" v-if="props.address.value">
        <div class="name">
          地址
        </div>
        <div class="value">
          {{props.address.value}}
        </div>
      </div>
      <div class="item" v-if="props.phone.value">
        <div class="name">
          电话
        </div>
        <div class="value">
          {{props.phone.value}}
        </div>
      </div>
      <div class="item" v-if="props.bankName.value">
        <div class="name">
          开户行
        </div>
        <div class="value">
          {{props.bankName.value}}
        </div>
      </div>
      <div class="item" v-if="props.accountNumber.value">
        <div class="name">
          账号
        </div>
        <div class="value">
          {{props.accountNumber.value}}
        </div>
      </div>

      <div class="line">

      </div>
      <div class="button-group">
        <div class="button">
          复制公司主体
        </div>
        <div class="button">
          复制公司税号
        </div>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  props: ['props']
}
</script>

<style scoped>
.container {
  background-color: #5d91e6;
  padding: 15px 15px 40px;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.inner-container {
  border-radius: 6px;
  background-color: #fff;
  padding: 25px 10px;
}

.item {
  margin-bottom: 7.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.name {
  color: #bbb;
}

.line {
  margin: 35px 0 20px;
  width: 100%;
  height: 0.5px;
  border-top: 0.5px dashed #ccc;
}

.button-group {
  display: flex;
  align-items: center;
}

.button {
  width: 150px;
  height: 38px;
  background-color: #4a8df6;
  color: rgb(241, 238, 238);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  margin: 0 auto;
}
</style>